package dahua_design.model04;

import dahua_design.model01.User;
import dahua_design.model02.IUser;
import dahua_design.model03.AccessFactory;
import dahua_design.model03.Department;
import dahua_design.model03.IDepartment;


/**
 * @ClassName: Client
 * @Description:
 * @Version: v1.0.0
 * @Author: tamir
 * @Date: 2022/06/01
 * Modification History:
 * Date             Author      Version     Description
 * -------------------------------------------------------------
 * 2022/06/01      tamir        v1.0.0      创建
 */
public class Client {
	public static void main(String[] args) {
		User user = new User();
		Department department = new Department();
		IUser iUser = DataAccess.createUser();
		iUser.getUser(1);
		iUser.insert(user);
		
		IDepartment iDepartment = DataAccess.createDepartment();
		iDepartment.insert(department);
		iDepartment.getDepartment(1);
	}
	
}
